package com.bwie.product.service.impl;

import com.bwie.common.core.domain.R;
import com.bwie.common.core.domain.Result;
import com.bwie.product.domain.po.PmsSpuInfoDesc;
import com.bwie.product.mapper.PmsSpuInfoDescMapper;
import com.bwie.product.service.PmsSpuInfoDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PmsSpuInfoDescServiceImpl implements PmsSpuInfoDescService {
    @Autowired
    private PmsSpuInfoDescMapper pmsSpuInfoDescMapper;

    /**
     * 根据spuId查询spu描述信息
     * @param spuId
     * @return
     */
    @Override
    public Result<PmsSpuInfoDesc> selectPmsSpuInfoDescList(Long spuId) {
        PmsSpuInfoDesc pmsSpuInfoDesc = pmsSpuInfoDescMapper.selectPmsSpuInfoDescList(spuId);
        return Result.success(pmsSpuInfoDesc);
    }
}
